import request from "@/utils/request"
// 部门
export function getDepartment(params) {
  return request({
    baseURL: window.APP_GETEWAY.auth,
    url: "/department",
    method: "get",
    params,
  })
}
// 获取供应商列表
export function getSupplie(data) {
  return request({
    baseURL: window.APP_GETEWAY.pms,
    url: `/v1/base/supplier`,
    method: "post",
    data,
  })
}
export function enumOptions(data) {
  return request({
    url: "/v1/public/enum/options",
    method: "post",
    data,
  })
}
export function enumGet(data) {
  return request({
    url: "/v1/public/enum/get",
    method: "post",
    data,
  })
}

// 获取国家列表
export const getCountry = (params) => {
  return request({
    baseURL: window.APP_GETEWAY.goods,
    url: "/api/goods/get-countrys",
    method: "get",
    params,
  })
}
// 获取平台站点
export const getPlatformsSites = (params) => {
  return request({
    baseURL: window.APP_GETEWAY.base,
    url: "/v1/platform/sites",
    method: "get",
    params,
  })
}
// // 获取平台站点
// export const getPlatforms = params => {
//   return request({
//     baseURL: window.APP_GETEWAY.base,
//     url: '/v1/platform/sites',
//     method: 'get',
//     params,
//   })
// }
export const getShopOptions = (data) => {
  return request({
    baseURL: window.APP_GETEWAY.base,
    url: "/v1/shop/drop-list",
    method: "POST",
    data,
  })
}

// 商品SkU列表
export function getGoodsSkuList(data) {
  return request({
    baseURL: window.APP_GETEWAY.goods,
    url: "/v1/goods/sku/list",
    method: "post",
    data,
  })
}

// 获取 sku详情
export function amazonSkuDetail(data) {
  return request({
    baseURL: window.APP_GETEWAY.goods,
    url: "/v1/goods/sku/amazon-sku-detail",
    method: "post",
    data,
  })
}

// // 获取国家列表
// export const countryGetList = params => {
//   return request({
//     baseURL: window.APP_GETEWAY.goods,
//     url: '/base/country/get-list',
//     method: 'get',
//     params,
//   })
// }
